<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>{$user.truename}的个人主页|中国互联网协会第{$num}届全国大学生网络创新应用大赛</title>
		<meta name="description" content="{$description}">
		<meta name="keywords" content="{$keywords}">
		<link href="__CSS__/common.css" rel="stylesheet" type="text/css">
		<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" rev="stylesheet" type="text/css" href="__CSS__/homepage.css">
		<link href="__CSS__/thickbox.css" rel="stylesheet" type="text/css">
		<script src="__JS__/ga.js" async="" type="text/javascript"></script>
		<script src="__JS__/jquery-1.js" type="text/javascript"></script>
		<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
		<script src="__JS__/thickbox.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function () {
				$("span.starDisplay").each(function () {
					var num = $(this).text();
					var text = "";
					for (i = 0; i < num; i++) {
						text += "★";
					}
					$(this).text(text);
					$(this).show();
				});

			});
		</script>
	</head>
	<body>

		<script type="text/javascript">
		var theForm = document.forms['aspnetForm'];
		if (!theForm) {
			theForm = document.aspnetForm;
		}
		function __doPostBack(eventTarget, eventArgument) {
			if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
				theForm.__EVENTTARGET.value = eventTarget;
				theForm.__EVENTARGUMENT.value = eventArgument;
				theForm.submit();
			}
		}
		</script>

		<div id="container">
		<!-- header.html开始 -->
		<include file="./Match/Tpl/Include/header.html" />
		<!-- header.html结束 -->
		<volist name="user" id="user">	
		<div id="sidebar">
			<div class="sidebar1">
				<h3>个人资料</h3>
				<p style="width: 218px; overflow: hidden; padding: 10px 29px 0px 29px;">
						<img src="__UPFILE__/img/Avatar/{$user.Avatar|default='default.gif'}" style="border: 1px solid rgb(51, 106, 250);" alt="{$user.truename}" height="140" width="140">
				</p>
				<p style="font-weight: 600; line-height: 30px; color: #0066FF;" align="center">
					<span>{$user.truename}</span>
				</p>
				<if condition="$usertype eq 1">
				<p style="text-align: center; padding-bottom: 15px; border-bottom: 1px solid #b7e4f7;
					  width: 95%; margin: 0 auto;">
					<a href="__URL__/editAvatar/" style="color: rgb(0, 153, 255);">上传头像</a>
				</p>
				</if>
				<dl class="list">
					<dd><b>所在学校：</b><span>{$user.SchoolName}</span></dd>
					<dd><b>所在学院：</b><span>{$user.DepartmentName}</span></dd>
					<dd><b>职务：</b><span>{$user.Job}</span></dd>
					<dd><b>最后登录时间：</b><span>{$user.LastLoginDate}</span></dd>
				</dl>

			</div>
			
			<div class="sidebarR1">
				<if condition="$usertype eq 1">
				<include file="./Match/Tpl/Include/openwindow.html" />
				<h3>控制面板</h3>
				<div class="list1">
					<ul>
						<li style="width: 100px; text-align: center;"><a href="__URL__/editBaseInfo/">编辑个人信息</a>
						</li>
						<li style="width: 100px; text-align: center;"><a href="__URL__/editPassword/">修改用户密码</a>
						</li>
						<li style="width: 100px; text-align: center;"><a href="__APP__/Public/Resources/AddResources">
							添加学习资源</a></li>
						
						<li style="width: 100px; text-align: center;">
							<a href="###" openwindow="Teacher/Home/instructorsTeamList/" title="接受指导老师申请" ay='-200' >接受指导老师申请</a>
						</li>
						<li style="width: 100px; text-align: center;">
						<a href="__URL__/ResumeList/">查看本校学生简历</a></li>
						
						<li style="width: 100px; text-align: center;"><a href="__APP__/Public/Mail/index">查看站内消息</a>
						</li>
						<li style="width: 100px; text-align: center;"><a href="__APP__/Public/Blog/AddBlog">发表博文</a> </li>
						<if condition="$user.IsJury eq 1">
						<li style="width: 100px; text-align: center;"><a href="__APP__/Public/Project/juryTeams">我要评分</a> </li>	
						</if>
					</ul>
				</div>
				<elseif condition="$usertype eq 2"/>
				<include file="./Match/Tpl/Include/openwindow.html" />
				<div class="sidebar2">
					<h3>联系方式</h3>
					<div class="list1">
						<ul>
							<li style="width: 100px; text-align: center;">
								<a href="###"  openwindow="Public/Mail/smail/id/{$user.UserId}"  title="发站内信" style="width: 105px; height: 25px; margin-left: 20px; font-size: 14px;">发站内信</a>
							</li>
							<li style="width: 100px; text-align: center;">
								<span id="ctl00_ContentPlaceHolder1_lbqq">
									<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$user.QQ}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$user.QQ}:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
								</span>
							</li>
						</ul>
					</div>
				</div>
				<else/>
				</if>
			</div>
		</div>
		</volist>
		<div id="content">
			<h3>
				<span num="0" style="cursor:pointer">我的点评</span> 
				<span num="1" style="cursor:pointer">我的博文</span>
				<span num="2" style="cursor:pointer">学习资源</span>
			</h3>
			<div class="ajaxload"></div>
		</div>
		
		<script type="text/javascript">
			$(function(){
				$('.ajaxload').load("__URL__/a0/id/{$uid}/page/1/type/0");
				$("span[num]").click(function(){
					var num=$(this).attr("num");
					$('.ajaxload').load("__URL__/a0/id/{$uid}/page/1/type/"+num);
				});
			});
		</script>
		<div id="sidebarR">
		
		{:W('Orderteam',array('data'=>$id))}
		<if condition="$usertype eq 1">
		{:W('Hascreate')}
		</if>
		</div>
		<div class="clear"></div>
		<div class="clear"></div>
		<!-- ---footer部分-- start ---- -->
		<include file="./Match/Tpl/Include/footer.html" />
		<!-- ---footer部分--  end  ---- -->
		</div>
	</body>
</html>